export default (value, options) => {
  if (!options || !options.length || value === "" || value === null || value === undefined)
    return "";
  const obj = options.find((item) => +item.value === +value);
  return obj ? obj.name : "";
};
